package com.spring.boot.sample.test2.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 * 模板测试：①hymeleaf ；②freemarker 
* <p>Title:TemplateController </p>
* <p>Description: </p>
* <p>Company: </p> 
* @author kexl
* @date 下午5:34:28
 */
@Controller
public class TemplateController {

	@RequestMapping("/test")
	public String index(Map<String,Object> map){
		 map.put("test","from TemplateController.helloHtml");
		return "test";
	}
	@RequestMapping("/ftl.htm")
	public String indexFtl(Map<String,Object> map){
		map.put("test", "这是freemarker模板测试");
		return "testftl";
	}
}
